﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.ComponentModel;
using TakeoutExpress.Support.Linq;

namespace Business.Proxy
{
    /// <summary>
    /// I think I'm designing this class to act as a intermediary between the workflow and whatever wants to call it.  Basically
    /// so I can keep the workflow runtime and the datacontext separate... not sure if this is a good idea yet.
    /// </summary>
    public class TakeoutProviderWorkflowServiceFacade
    {

        private static WorkflowRuntime workflowRuntime = null;

        public TakeoutProviderWorkflowServiceFacade(System.Workflow.Runtime.WorkflowRuntime runtime)
        {
            workflowRuntime = runtime;
        }

        public TakeoutProvider CreateTakeoutProviderWorkflow(string providerUsername, int providerSiteId, DateTime providerStartTime, 
            DateTime providerExpirationTime, bool providerAllowPayMeLater, string providerInstructions, int providerMenuId, 
            int providerMaximumOrders, decimal providerTakeoutCharge)
        {
            TakeoutProvider newProvider = new TakeoutProvider();
            newProvider.SiteID = ;
            newProvider.StartTime;
            newProvider.ExpirationTime;
            newProvider.AllowPayMeLater;
            newProvider.Instructions;
            newProvider.MaximumOrders;
            newProvider.Notified;
            newProvider.TakeoutCharge;
            newProvider.TakeoutProviderAudiences;
            newProvider.Username = providerUsername;
            

        }
    }
}
